<?php include('scripts.php'); ?>

	<script type="text/javascript">
        $(function() {
            $("#date_from").val("<?php echo $date_from; ?>").datepicker({
                dayNamesMin: "<dayNamesMin>"
                , monthNamesShort: "<monthNamesShort>"
            });
            
            $("#date_to").val("<?php echo $date_to; ?>").datepicker({
                dayNamesMin: "<dayNamesMin>"
                , monthNamesShort: "<monthNamesShort>"
            });
        });

    </script>
    

<form action="/member/bonusDetails" id="bonusForm" method="post">
<table cellpadding="0" cellspacing="5" border="0">
    <tr>
        <td>
			<font color='white'><?php echo __('Bonus Date'); ?></font>
		</td>   
		<td>
			<input name="date_from" type="text" id="date_from" tabindex="1" onkeypress="return false;"/>&nbsp;<font color='white'><?php echo __('to'); ?></font>&nbsp;<input name="date_to" type="text" id="date_to" tabindex="2" onkeypress="return false;"/>
		</td>
		<td>
			<input type="submit" value="<?php echo __('Submit') ?>" name="btnSubmit" id="btnSubmit">
		</td>
    </tr>
</table>
</form>
<br>
<table cellpadding="0" cellspacing="5" align="center" border="0" width='100%'>
    <tr>
        <td>
			<table border='1' width='100%'>
			<tr valign="middle" style="background-color:#f1f1f1;height:32px;">
				<td align='center'><?php echo __('Bonus') ?></td><td align='center'><?php echo __('Amount') ?></td><td align='center'><?php echo __('View Details') ?></td>
			</tr>
			<?php 
			echo "<tr style=\"background:#ccc;\" onmouseover=\"currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f1f1f1';\" onmouseout=\"this.style.backgroundColor=currentcolor\" style=\"height:25px;\">"."<td align='center'>".__('DSB')."</td><td align='center'>".$dsb."</td><td align='center'>".link_to(__('Details'), 'member/bdetails?bonus=dsb&date_from='.$date_from."&date_to=".$date_to, array ('class' => 'activeLink', 'target' => 'bonus'))."</td></tr>";
			echo "<tr style=\"background:#ccc;\" onmouseover=\"currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f1f1f1';\" onmouseout=\"this.style.backgroundColor=currentcolor\" style=\"height:25px;\">"."<td align='center'>".__('GDB')."</td><td align='center'>".$gdb."</td><td align='center'>".link_to(__('Details'), 'member/bdetails?bonus=gdb&date_from='.$date_from."&date_to=".$date_to, array ('class' => 'activeLink', 'target' => 'bonus'))."</td></tr>";
			echo "<tr style=\"background:#ccc;\" onmouseover=\"currentcolor=this.style.backgroundColor;this.style.backgroundColor='#f1f1f1';\" onmouseout=\"this.style.backgroundColor=currentcolor\" style=\"height:25px;\">"."<td align='center'>".__('Total')."</td><td align='center'>".$total."</td><td align='center'></td></tr>";
			?>
			</table>
		</td>
    </tr>
</table>